Community page lists its sub-pages#14
Merged
Merged
Conversation
The /community stub rendered empty because the default list layout ranges over child content pages, of which the section has none — its sub-pages only existed in the nav dropdown menu. Add a community-specific list layout that renders the `community` menu entries as a card grid, and enrich those menu entries with icon and description params so the cards are self-documenting. New sub-pages now only need a menu entry to appear in both the nav and the page body. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
KennyNeal
approved these changes
Jun 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
/communitypage rendered as an empty stub — just the header, no body. The defaultlist.htmllayout ranges over child content pages, but the community section has none. Its sub-pages (Learning, Calendar, Authors, Forums, Discord Archive) only existed in the nav dropdown via thecommunitymenu.Change
themes/powershell-community/layouts/community/list.html, a section-specific layout that renders thecommunitymenu entries as a card grid (keeping the section's intro text and header styling).communitymenu entries inhugo.yamlwithiconanddescriptionparams (andexternal: trueon Forums so it opens in a new tab).Because the page is driven off
.Site.Menus.community, future sub-pages only need a menu entry to show up in both the nav dropdown and the page body — they stay in sync automatically.Testing
hugobuilds clean (no new warnings)./community/index.htmlcontains all five cards with correct icons and the external Forums link.🤖 Generated with Claude Code